home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 November
/
Macworld (1999-11).dmg
/
Updaters
/
WhiteCap 3.0.4
/
WhiteCap Source.sit
/
WhiteCap Source
/
Common
/
General Tools
/
Headers
/
XDynArray.h
< prev
next >
Wrap
Text File
|
1999-07-13
|
881b
|
40 lines
#ifndef XDynArray_H
#define XDynArray_H
#include "UtilStr.h"
class XDynArray : protected UtilStr {
public:
// The argument specified how big each element is in this array
XDynArray( long inRecSize );
// Returns the dimmed size of this Array
inline long Count() const { return mNumElements; }
// Effectively makes the length of this array zero.
void RemoveAll() { Wipe(); mNumElements = 0; }
// Allows easy dynamic array usage. Simple use any index and XPtrList will expand to meet that size.
// Impt: Zero based indexing.
// Note: Indexs below 0 lead to disaster;
// Note: Since caller has access to changes values, any current sorting fcn is not used
void* operator[] ( const long inIndex );
protected:
long mNumElements;
long mRecSize;
static void* sDummy;
};
#endif